package com.zyl.pts.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @version v1.0
 * @ProjectName: product_source
 * @Package: com.zyl.pts.mapper
 * @ClassName: AnalysisMapper
 * @Description TODO()
 * @Author 翟玉龙
 * @Date 2024/11/18-14:17
 */
@Mapper
public interface AnalysisMapper {

    /**
     * 统计栏舍，栏圈，动物数量，冷库数量，员工数量信息
     * @return List<Integer>
     */
    List<Integer> getCount();

    /**
     * 统计动物体重信息
     * @return List<Integer>
     */
    @MapKey("weight_range")
    List<Map<String, Object>> getIndexCount();

    /**
     * 统计动物病症数量
     * @return List<Map<String, Object>>
     */
    @MapKey("disease_type")
    List<Map<String, Object>> getDiseaseCount();

    /**
     * 统计本年度12个月销售动物
     * @return List<Integer>
     */
    List<Integer> getSaleCount();
}
